package com.xiyu.service.enums.restaurant.plan;

import com.xiyu.service.enums.restaurant.dish.RestaurantDishTabooEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 餐饮计划状态
*/
@Getter
@AllArgsConstructor
public enum RestaurantPlanStatusEnum implements IntArrayValuable {

    /**
    * 未发布
    */
    UNPUBLISHED(1, "未发布"),
    /**
    * 已发布
    */
    PUBLISH(2, "已发布");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(RestaurantPlanStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(RestaurantPlanStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
